home *** CD-ROM | disk | FTP | other *** search
- package Code.WINDOWS.DIALOGS
- {
- import Code.LIB._cg33;
- import Code.LIB._ct751;
- import Code.LIB._gt710;
- import Code.LIB._my111;
- import Code.LIB._rs402;
- import Code.OPTIONS._gs337;
- import Code.OPTIONS._vw297;
- import Code._fi197;
- import flash.display.Sprite;
- import flash.events.Event;
- import flash.events.MouseEvent;
- import flash.text.TextField;
- import flash.text.TextFieldType;
- import flash.text.TextFormat;
-
- public class _jt456 extends _gt710
- {
- private var iCanceled:Boolean;
-
- public var iOk:_ct751;
-
- public var iCancel:_ct751;
-
- private var iAuto:Boolean;
-
- private var iInput:TextField;
-
- public function _jt456(param1:Boolean = false)
- {
- var _loc2_:Array = null;
- var _loc3_:Sprite = null;
- var _loc4_:TextFormat = null;
- this.iAuto = param1;
- _loc2_ = [[_fi197._ww533,_gs337.cGellRed,400,260,true,1,0,0,null,true],[_fi197._ww533,_gs337.cGellGreen,300,70,false,30,80,null,true],[_fi197._cx181,_gs337.iLanguage.strEnterName,_gs337.TColors,50,_my111.BigText,30,20,null,true],[_fi197._tr788,_gs337.iLanguage.strOk,_gs337.cGellGreen,110,50,28,_gs337.cWhite,35,175,"iOk",true],[_fi197._tr788,_gs337.iLanguage.strCancel,_gs337.cGellRed,110,50,28,_gs337.cWhite,220,175,"iCancel",true]];
- super(_loc2_);
- if(param1)
- {
- this.iCancel.visible = false;
- }
- _loc3_ = new _vw297.OFont() as Sprite;
- this.iInput = TextField(_loc3_.getChildAt(0));
- _loc4_ = new TextFormat();
- _loc4_.color = _gs337.cWhite;
- _loc4_.size = 40 * _rs402._oy577;
- this.iInput.type = TextFieldType.INPUT;
- this.iInput.width = 250 * _rs402._oy577;
- this.iInput.height = 100 * _rs402._oy577;
- this.iInput.x = 40 * _rs402._oy577;
- this.iInput.y = 90 * _rs402._oy577;
- this.iInput.defaultTextFormat = _loc4_;
- this.iInput.maxChars = 10;
- this.iInput.restrict = "A-Z a-z 0-9 а-я А-Я";
- this.addChild(iInput);
- this.iInput.text = "";
- _rs402.prStage.focus = iInput;
- this._xe768(100,100);
- }
-
- override public function _ba289(param1:MouseEvent) : void
- {
- if(param1.target == this.iOk._en365)
- {
- this.iInput.text = iInput.text.toUpperCase();
- if(this.iInput.text.length == 0 || this.iInput.text.indexOf("FUCK") != -1 || this.iInput.text.indexOf("BEATCH") != -1 || this.iInput.text.indexOf("BITCH") != -1 || this.iInput.text.indexOf("ASS") != -1 || this.iInput.text.indexOf("BICH") != -1 || this.iInput.text.indexOf("BEACH") != -1 || this.iInput.text.indexOf("FACK") != -1 || this.iInput.text.indexOf("HO") != -1 || this.iInput.text.indexOf("NIGER") != -1 || this.iInput.text.indexOf("NIGGA") != -1 || this.iInput.text.indexOf("PUSSY") != -1 || this.iInput.text.indexOf("PUZZY") != -1 || this.iInput.text.indexOf("PUSY") != -1 || this.iInput.text.indexOf("PUZZY") != -1)
- {
- this.iInput.text = "";
- return;
- }
- if(iAuto)
- {
- _cg33._jq283(this.iInput.text);
- }
- this.iInput.visible = false;
- this.iCanceled = false;
- this.hide();
- }
- if(param1.target == this.iCancel._en365)
- {
- this.iInput.visible = false;
- this.iCanceled = true;
- this.hide();
- }
- }
-
- public function get _gn229() : String
- {
- if(iCanceled)
- {
- return null;
- }
- return this.iInput.text;
- }
-
- override public function onEnterFrame(param1:Event) : void
- {
- super.onEnterFrame(param1);
- if(this._hy116 && _rs402.prStage.focus != this.iInput)
- {
- _rs402.prStage.focus = this.iInput;
- }
- }
-
- override public function show() : void
- {
- super.show();
- if(this.iInput)
- {
- this.iInput.visible = true;
- }
- _rs402.prStage.focus = iInput;
- }
- }
- }
-
-